import axios from "axios";

let baseURL = '';
if (process.env.NODE_ENV == 'development') {
    baseURL = '/testapi/';
} else {
    baseURL = '/';
}
const serviceAxios = axios.create({
    baseURL: baseURL, // 基础请求地址
    timeout: 50000, // 请求超时设置
    withCredentials: false, // 跨域请求是否需要携带 cookie

});
serviceAxios.defaults.headers['Content-Type'] = 'application/x-www-form-urlencoded'
export default serviceAxios;
